package com.waters321.rock.orm.query.base;

import java.io.Serializable;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import lombok.Data;

@Data
public class BaseQuery implements Serializable {

  private static final long serialVersionUID = 1L;

  private Pagination page = new Pagination(1, 1000000);

  public void page(int pageNum, int pageSize) {
    this.page = new Pagination(pageNum, pageSize);
  }
}
